<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!-- 系统路径 -->
<%
//String basePath = request.getContextPath();
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String serverPath = request.getScheme() + "://" +  
	request.getServerName() + ":" + 
	request.getServerPort() + "/";
%>

<script type="text/javascript">
 var basePath = "<%=basePath%>";
 var appName = "<%=basePath%>";
</script>